#pragma GCC optimize(2)
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <map>
#include <vector>

using namespace std;
using LL = long long;

int n;
string s;

int main(){
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    cin >> n >> s;

    int ok = 1;

    for(int i = 0; i < n; i ++){
        if(s[i] == '"'){
            ok = 1 - ok;
        }else{
            if(ok && s[i] == ',') s[i] = '.'; 
        }
    }

    cout << s << endl;


    return 0;
}